package org.cs.mgr.before.service.impl;

import java.util.List;
import java.util.Map;

import javax.xml.stream.events.Comment;

import org.cs.core.service.impl.BaseService;
import org.cs.mgr.before.dao.ICommmentDao;
import org.cs.mgr.before.service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("commentService")
public class CommentService extends BaseService<Comment> implements ICommentService{

	//注入dao
	@Autowired
	ICommmentDao   iCommmentDao;

	//通过goods的id查Comment表，返回一个list集合
	@Override
	public List<Map<String, Object>> getComment(String id) {
		List<Map<String, Object>> comments = iCommmentDao.getComment(id);
		return comments;
	}

	
}
